package com.its.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "gym_cart")
public class Cart {
    //购物车ID
    @TableId(type = IdType.AUTO)
    private Integer id;
    //会员账户名
    private String memberAccount;
    //购物车中商品名称
    private String goodsName;
    //商品价格
    private BigDecimal goodsPrice;
    //商品数量
    private Integer mount;
    //小计数量
    private BigDecimal subtotal;
    //商品ID
    private Integer gid;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
